//
//  View.cpp
//  EVAs
//
//  Created by Andreas Hübner on 16.05.12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>

void Button_CB(Fl_Widget * w,void * data){
    exit(1);
}

int main(int argc, char **argv) {
    Fl_Window *window = new Fl_Window(300,180);
    Fl_Button *box = new Fl_Button(20,40,260,100,"Hello, World!");
    box->box(FL_UP_BOX);
    box->labelsize(36);
    box->labelfont(FL_BOLD+FL_ITALIC);
    box->labeltype(FL_SHADOW_LABEL);
    box->callback(Button_CB);
    window->end();
    window->show(argc, argv);
    return Fl::run();
}